﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>
<%@ Import Namespace="wojilu.Members.Users.Domain" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<User> list = v.data("list") as List<User>; %>

<%if (list.Count > 0){ %>
<% foreach (User row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.Name %>-<%=PowerGroup.findById(row.GroupId).powername %>" <%if (bllPowerGroupService.powercheck("system", "manageedit", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('_{mangerlist_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminEdit, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,true);"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="4%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="6%"><%=row.Id %></td>
			<td width="15%"><%=row.Name %></td>
			<td width="13%"><%=row.RealName %></td>
			<td width="10%"><%=PowerGroup.findById(row.GroupId).powername %></td>
			<td width="14%"><%=row.Created %></td>
			<td width="5%"><%=row.LoginCount %></td>
			<td width="10%"><%=row.LastLoginIp %></td>
			<td width="7%" id="infotype">
				<table>
					<tr>
						<td><%if(row.inputclassid == 1){ %><span class="class_ok" title="_{inputtype_botton}:_{mangerlist_inputclassid_1}"></span><%}else{ %><span class="class_no" title="_{inputtype_botton}:_{mangerlist_inputclassid_0}"></span><%} %></td>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{mangerlist_user_type}：_{mangerlist_audit_ok}"></span><%}else{ %><span class="audit_no" title="_{mangerlist_user_type}：_{mangerlist_audit_no}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="16%" id="infotype">
                <%if (bllPowerGroupService.powercheck("system", "manageedit", modelpowergroup)) { %>
				<table>
					<tr>
						<td><a class="setedit3" onclick="javascript:parent.onbotton('<%=row.Name %>_{mangerlist_set_loglist}','#{view}?loadfun=loglist&logusername=<%=row.Name %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'managerloglist<%=row.Id %>',self.frameElement.getAttribute('name'));" id="managerloglist<%=row.Id %>" href="#body" title="_{mangerlist_set_loglist}" hidefocus="true">_{mangerlist_set_loglist}</a></td>
						<td class="padding-left3"><a class="setedit" onclick="javascript:parent.onbotton('_{mangerlist_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.UserController().AdminEdit, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,true);" href="#body" title="_{mangerlist_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
</div>
<%} %>
<%}else{%>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">_{list_nothing_title}</td>
	</tr>
</table>
</div>
<%} %>